package com.googlecode.rjm.model.journal;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import com.googlecode.rjm.model.Issue;

@Entity
@DiscriminatorValue(value = "attr#parent_id")
public class ParentJournalDetail extends JournalDetail<Issue> {

	private static final long serialVersionUID = 1L;

	@Override
	public Issue getTypedValue() {
		return loadObjectFromId(this.getValue(), Issue.class);
	}

	@Override
	public Issue getOldTypedValue() {
		return loadObjectFromId(this.getOldValue(), Issue.class);
	}
}
